<?php
namespace app\admin\validate;

use think\Validate;

class Proinfo extends Validate
{
    protected $rule = [
        'phone'       => 'require|length:11',
        'place'       => 'require|min:4',
        'telMan'       => 'require|length:2,4',
        'desc'       => 'require|min:7',
        'emer'		=> 'require',
    ];
    protected $message = [
    	'phone.require' =>'手机号不能为空',
    	'phone.length'		=>'手机号输入有误',
    	'place.require'		=>'故障位置不能为空',
    	'place.min'		=>'位置不少于4个字',
    	'telMan.require'		=>'报修人不能为空',
    	'telMan.length'		=>'报修人名字长度有误',
    	'desc.require'       => '故障描述不能为空',
    	'desc.min'       => '描述不少于7个字',
    	'emer.require'		=> '请选择故障程度',
    ];
}